<template>
  <div>
    <h1>抱歉，您无权访问受保护的资源！<a href="./login.html">请先登录...</a></h1>
  </div>
</template>

<script>
export default {
  name: "ForbiddenPage",
  created() {
    this.redirectLogin()
  },
  methods: {
    redirectLogin(){
      this.$message.warning('即将跳转登录页面...')

      setTimeout(()=>{
        location.href = "http://localhost:3000/login.html"
      },3000)
    }
  }
}
</script>

<style scoped>

</style>